<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>API: menu   menumoduleitem.js  (YUI Library)</title>
	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css">
	<link rel="stylesheet" type="text/css" href="assets/api.css">
</head>

<body id="yahoo-com">
<div id="doc3" class="yui-t2">

	<div id="hd">
        <h1>Yahoo! UI Library</h1>
        <h3>Menu Library&nbsp;</h3>
        <p>
        <a href="./index.html">Yahoo! UI Library</a> 
            &gt; <a href="./module_menu.html">menu</a>
                
                 &gt; menumoduleitem.js (source view) 
            </p>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">

                    <div id="srcout">
<div class="highlight" ><pre><span class="c">/**</span>
<span class="c">* Creates an item for a menu module.</span>
<span class="c">* </span>
<span class="c">* @param {String} p_oObject String specifying the text of the menu module item.</span>
<span class="c">* @param {&lt;a href=&quot;http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-</span>
<span class="c">* html.html#ID-74680021&quot;&gt;HTMLLIElement&lt;/a&gt;} p_oObject Object specifying the </span>
<span class="c">* &lt;code&gt;&amp;#60;li&amp;#62;&lt;/code&gt; element of the menu module item.</span>
<span class="c">* @param {&lt;a href=&quot;http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-</span>
<span class="c">* html.html#ID-38450247&quot;&gt;HTMLOptGroupElement&lt;/a&gt;} p_oObject Object specifying </span>
<span class="c">* the &lt;code&gt;&amp;#60;optgroup&amp;#62;&lt;/code&gt; element of the menu module item.</span>
<span class="c">* @param {&lt;a href=&quot;http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-</span>
<span class="c">* html.html#ID-70901257&quot;&gt;HTMLOptionElement&lt;/a&gt;} p_oObject Object specifying the </span>
<span class="c">* &lt;code&gt;&amp;#60;option&amp;#62;&lt;/code&gt; element of the menu module item.</span>
<span class="c">* @param {Object} p_oConfig Optional. Object literal specifying the </span>
<span class="c">* configuration for the menu module item. See configuration class documentation</span>
<span class="c">* for more details.</span>
<span class="c">* @class MenuModuleItem</span>
<span class="c">* @constructor</span>
<span class="c">* @deprecated As of version 0.12, all MenuModuleItem functionality has been </span>
<span class="c">* implemented directly in YAHOO.widget.MenuItem, making YAHOO.widget.MenuItem </span>
<span class="c">* the base class for all menu items.</span>
<span class="c">*/</span>
<span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">MenuModuleItem</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">MenuItem</span><span class="o">;</span>
</pre></div>
                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li><a href="module_animation.html">animation</a></li>
                                <li><a href="module_autocomplete.html">autocomplete</a></li>
                                <li><a href="module_calendar.html">calendar</a></li>
                                <li><a href="module_connection.html">connection</a></li>
                                <li><a href="module_container.html">container</a></li>
                                <li><a href="module_dom.html">dom</a></li>
                                <li><a href="module_dragdrop.html">dragdrop</a></li>
                                <li><a href="module_event.html">event</a></li>
                                <li><a href="module_logger.html">logger</a></li>
                                <li><a href="module_menu.html">menu</a></li>
                                <li><a href="module_slider.html">slider</a></li>
                                <li><a href="module_tabview.html">tabview</a></li>
                                <li><a href="module_treeview.html">treeview</a></li>
                                <li><a href="module_yahoo.html">yahoo</a></li>
                        </ul>
                    </div>

                    <div class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li><a href="YAHOO.widget.ContextMenu.html">YAHOO.widget.ContextMenu</a></li>
                                <li><a href="YAHOO.widget.ContextMenuItem.html">YAHOO.widget.ContextMenuItem</a></li>
                                <li><a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a></li>
                                <li><a href="YAHOO.widget.Menubar.html">YAHOO.widget.Menubar</a></li>
                                <li><a href="YAHOO.widget.MenuBarItem.html">YAHOO.widget.MenuBarItem</a></li>
                                <li><a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a></li>
                                <li><a href="YAHOO.widget.MenuManager.html">YAHOO.widget.MenuManager</a></li>
                                <li><a href="YAHOO.widget.MenuModule.html">YAHOO.widget.MenuModule</a></li>
                                <li><a href="YAHOO.widget.MenuModuleItem.html">YAHOO.widget.MenuModuleItem</a></li>
                        </ul>
                    </div>

                    <div class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li><a href="contextmenu.js.html">contextmenu.js</a></li>
                                <li><a href="contextmenuitem.js.html">contextmenuitem.js</a></li>
                                <li><a href="menu.js.html">menu.js</a></li>
                                <li><a href="menubar.js.html">menubar.js</a></li>
                                <li><a href="menubaritem.js.html">menubaritem.js</a></li>
                                <li><a href="menuitem.js.html">menuitem.js</a></li>
                                <li><a href="menumanager.js.html">menumanager.js</a></li>
                                <li><a href="menumodule.js.html">menumodule.js</a></li>
                                <li><a href="menumoduleitem.js.html">menumoduleitem.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2006 Yahoo! Inc. All rights reserved.
	</div>
</div>
</body>
</html>
